import util.DbUtil

DbUtil.prepare()

def sql = DbUtil.sql

def insertAthlete = '''insert into t_athlete(firstname, lastname) values(?,?)'''
sql.withTransaction {
	sql.execute insertAthlete, ['aa', 'aa']
	sql.execute insertAthlete, ['bb', 'bb']
}

sql.rows('select * from t_athlete').each {
	println it
}

sql.close()
